package structural.proxy;

public class ProxyObject implements AbstractObject{

    private AbstractObject target;
    public ProxyObject(AbstractObject _target){
        this.target = _target;
    }
    @Override
    public void doSomething() {
        System.out.println("代理开工");
        target.doSomething();
        System.out.println("代理收工");
    }
}
